package com.strive.controller;

import com.strive.entity.TbUser;
import com.strive.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: bingcun.chen
 * @Date: 2022/2/25 17:24
 * @Version 1.0
 */
@RestController
@RequestMapping
public class UserController {

    @Autowired
    private UserService userService;
    @PostMapping("/createUser")
    public String createUser(@RequestBody TbUser tbUser){
        return userService.createUser(tbUser);
    }


    @PostMapping("/testUser")
    public String testUser(){
        return "ok";
    }

}
